STEP 6: Let's learn how we can make an event for any key on the keyboard!

Remember to assign all actions to dancer by changing the variable name in front of your commands to dancer.

  • Go to and drag My Key Press to the bottom of your program.
  • Drag Turn Left into the event.
  • Drag Turn Right inside the event.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)